package com.ubiquando.api.server.db;

import java.util.HashSet;
import java.util.Set;

import javax.persistence.Entity;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;


//@Inheritance(strategy=InheritanceType.SINGLE_TABLE)
@Entity
public class EventPickUp extends Event {

	private String location;
	
//	@OneToOne
	private String pickerId;

//	private Set<String> participants;
	
	public EventPickUp(){
		super();
//		this.participants = new HashSet<String>();
	}
//	
//	//@Basic
//	@ManyToMany
//	private Set<Client> participants;
	
//	public EventPickUp(int type, String name, Client creator, long time, String destination, String location, Client picker) {
//		super(type, name, creator, time, destination);
//		this.location = location;
//		this.picker = picker;
////		this.participants = new HashSet<Client>();
////		this.participants.add(creator);
//		this.participants.add(picker);
//	}
	
	public String getLocation(){
		return this.location;
	}
	
	public void setLocation(String location){
		this.location = location;
	}
	
	public void setPickerId(String pickId){
		this.pickerId = pickId;
	}
	
	public String getPickerId(){
		return this.pickerId;
	}
	
//	public Set<String> getParticipants(){
//		return this.participants;
//	}
//	
//	public void setParticipants(Set<String> participants){
//		this.participants = participants;
//	}
//	
//	public void addParticipant(String clientId){
//		if(this.participants == null)
//			this.participants = new HashSet<String>();
//		this.participants.add(clientId);
//	}
//	
//	public void removeParticipant(String clientId){
//		if(this.participants != null){
//			this.participants.remove(clientId);
//		}
//	}
	
}
